package com.example.bankend.form;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class UpadteUserInfo {
    @JsonProperty("adminID")
    private Long adminID;
    @JsonProperty("adminName")
    private String adminName;
    @JsonProperty("adminPass")
    private String adminPass;
    @JsonProperty("customerID")
    private Long customerID;
    @JsonProperty("address")
    private String address;
    @JsonProperty("telephone")
    private String telephone;
    @JsonProperty("pass")
    private String pass;

    public boolean isTure() {
        return adminID != null
                && adminName != null
                && adminPass != null
                && customerID != null
                && address != null
                && pass != null;
    }
}
